import Vue from 'vue'
import Vuex from 'vuex'

export default function createStore() {
  if(!this.store)
    return {}

  Vue.use(Vuex)
  if(typeof this.native !== 'function')
    this.store.state.native = this.native
  return new Vuex.Store(this.store)
}
